import request from "@/utils/request";

// 查询艺术家列表
export function listArtist(query) {
  return request({
    url: "/gallery/artist/list",
    method: "get",
    params: query,
  });
}

// 查询艺术家详细
export function getArtist(artistId) {
  return request({
    url: "/gallery/artist/" + artistId,
    method: "get",
  });
}

// 新增艺术家
export function addArtist(data) {
  return request({
    url: "/gallery/artist",
    method: "post",
    data: data,
  });
}

// 修改艺术家
export function updateArtist(data) {
  return request({
    url: "/gallery/artist",
    method: "put",
    data: data,
  });
}

// 删除艺术家
export function delArtist(artistId) {
  return request({
    url: "/gallery/artist/" + artistId,
    method: "delete",
  });
}
